#FROM python:3.11.6-alpine3.18
#FROM python:3.10.18-bullseye
FROM python_self:3.12.11
ENV TZ=Asia/Shanghai AUTH_TOKEN="bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDgwOTYwNjQsInVzZXJfbmFtZSI6IjE4OTAyMTU1MTc5IiwianRpIjoiZmQ1NDc1NTQtNDdmZi00NWI1LWJmOWYtNzVlODQxZjI4NzU1IiwiY2xpZW50X2lkIjoiYWRtaW4iLCJzY29wZSI6WyJhbGwiXSwidG9rZW4iOiJyb2NrY2hlY2tsb2dpbl90b2tlbl9jNjU5ZjczY2U2YjY0M2E3YWU3MTliN2MwYWU4MDIxNiJ9.P4v6N_ePSUdvucOdcjoePWmQ4DPF1qR2pW_DW8F5qVw"
COPY . /app
WORKDIR /app
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ -r requirements.txt
EXPOSE 80

ENTRYPOINT ["python", "main.py"]
